﻿using Newtonsoft.Json;

namespace Missbot.WeiboBot.Model
{
    /// <summary>
    /// 微博列表响应
    /// </summary>
    public class WeiboListResp
    {
        /// <summary>
        /// 数据体
        /// </summary>
        [JsonProperty("data")]
        public WeiboListRespData Data { get; set; }
        
        /// <summary>
        /// 是否请求成功
        /// </summary>
        [JsonProperty("ok")]
        public int OK { get; set; }
    }

    public class WeiboListRespData
    {
        [JsonProperty("list")]
        public WeiboListDataList[] List { get; set; }
    }

    public class WeiboListDataList
    {
        /// <summary>
        /// 微博ID
        /// </summary>
        [JsonProperty("mblogid")]
        public string MBlogID { get; set; }
        
        /// <summary>
        /// 博文
        /// </summary>
        [JsonProperty("text")]
        public string Text { get; set; }
        
        /// <summary>
        /// 是否是长微博
        /// </summary>
        [JsonProperty("isLongText")]
        public bool IsLongText { get; set; }
    }
}